#!/usr/bin/python
# coding:utf-8

from django.contrib import admin
from .models import travel,travel_day


# Register your models here.

class travel_admin(admin.ModelAdmin):
    list_display = ('order_no', 'day_id', 'item_index', 'start_time', 'end_time')
    readonly_fields = ('restaurant', 'stay', 'traffic', 'scenic', 'buy', 'things')

class travel_day_admin(admin.ModelAdmin):
    list_display = ('order_no', 'day_index', 'date', 'add_time')


admin.site.register(travel, travel_admin)
admin.site.register(travel_day, travel_day_admin)
